<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box {
            width: 200px;
            height: 200px;
            background-color: pink;
            /* position: absolute; */
            left: 0;
            right: 0;
            animation: move 3s linear 0s infinite;
        }
        
        @keyframes move {
            0% {
                left: 0;
                top: 0;
                background-color: pink;
            }
            25% {
                left: 500px;
                top: 0;
                background-color: purple;
            }
            50% {
                left: 500px;
                top: 500px;
                background-color: orange;
            }
            75% {
                left: 0;
                top: 500px;
                background-color: skyblue;
            }
            100% {
                left: 0;
                top: 0;
                border-radius: 50%;
            }
        }
    </style>
</head>

<body>
    <div class="box"></div>
</body>

</html>